﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NakedObjects;

namespace FUFDomain.Wizard
{
    [NotPersisted]
    public abstract class  AbstractWizard
    {
        
        public virtual int Id { get; set; }

        
        public List<AbstractScreenWizard> Wizards = new List<AbstractScreenWizard>();

        [Hidden]
        public virtual void AddWizard(AbstractScreenWizard wi) { 
            if ( Wizards.Count() >0){
                wi.ObjBack = Wizards.Last();
            }
            Wizards.Add(wi);
        }
        [Hidden]
        public virtual AbstractScreenWizard InitialScreen(){
            return Wizards.First();
        }
        [Hidden]
        public abstract void Inicialice();

    }
}
